﻿/* 提供富文本编辑器样式，内容只读 */
//正文
var editor;
var editorRespond;
KindEditor.ready(function (K) {
    editor = K.create('#Content', {
        autoHeightMode: true,
        readonlyMode: true,
        afterCreate: function () {
            this.loadPlugin('autoheight');
        },
        width: '100%',
        items: [
            //'bold', 'italic', 'underline', '|', 'fontname', 'fontsize', 'forecolor', 'hilitecolor', '|', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist',
            //    'insertunorderedlist', '|', 'paste', 'plainpaste', 'wordpaste', '|', 'emoticons', 'link', 'image'
        ]
    });
    //回复
    editorRespond = K.create('#RespondContent', {
        autoHeightMode: true,
        readonlyMode: true,
        afterCreate: function () {
            this.loadPlugin('autoheight');
        },
        width: '100%',
        items: [
        //    'bold', 'italic', 'underline', '|', 'fontname', 'fontsize', 'forecolor', 'hilitecolor', '|', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist',
        //        'insertunorderedlist', '|', 'paste', 'plainpaste', 'wordpaste', '|', 'emoticons', 'link', 'image'
        ]
    });
});